<%@page import="com.rec.smile.util.TimeUtil"%>
<%@page import="com.rec.smile.util.TimeManger"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>更改系统时间</title>
</head>
<body>
<%
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
if(null != request.getParameter("time")){
	
	try{
		Date now =  dateFormat.parse(request.getParameter("time"));
		TimeManger.changeTime(now.getTime());
	}catch(Exception e){
		e.printStackTrace(response.getWriter());
	}
}




%>
<%=dateFormat.format(new Date(TimeUtil.currentTimeMillis())) %>
</body>
</html>